/*
 * @Author: lmh
 * @Date: 2021-09-12 22:16:50
 * @LastEditTime: 2021-09-12 22:18:30
 * @LastEditors: lmh
 * @Description: 
 */
class VNode {
    constructor(tag, data, value, type) {
        this.tag = tag && tag.toLowerCase()
        this.data = data
        this.value = value
        this.type = type
        this.children = []
    }

    appendChild (vnode) {
        this.children.push(vnode)
    }
}
